from app import create_app
from flask_script import Manager, Server, Shell

app = create_app()

manage = Manager(app)


@manage.command
def display():
    print("print Hello World")


if __name__ == "__main__":
    # manage.add_command("runserver", Server(
    #     host='0.0.0.0', port=5000, use_debugger=True, use_reloader=True, threaded=True))

    # manage.add_command("shell", Shell(banner='Hello Flask'))

    # manage.run()
    app.run(host='0.0.0.0', port=5000, debug=True,
            use_reloader=True, threaded=True)
